<template>
	<view class="mask" @click="close">
		<view class="container">
			<slot></slot>
		</view>
	</view>
</template>

<script>
	export default {
		methods:{
			close(){
				this.$emit('close')
			}
		}
	}
</script>

<style>
	.mask{
		background-color: rgba(0,0,0,0.5);
		width: 100%;
		height: 100%;
		position: fixed;
		top: 0;
		left: 0;
		z-index:100;
	}
	
	.container{ 
		background: #FFFFFF;
		border-radius:10px;
		width: 560upx;
		position: fixed;
		margin: auto;
		top: 38%;
		left: 10%;
		z-index:100;
		opacity: 1;
		padding: 30upx;
		z-index:100;
	}
</style>
